﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
  public  class PhongBUS
    {
        public List<PhongDTO> DanhSachPhong()
        {
            PhongDAO kq = new PhongDAO();
            return kq.DanhSachPhong();
        }
        public PhongDTO LayPhongByID(int p_ID)
        {
            PhongDAO kq = new PhongDAO();
            return kq.LayPhongByID(p_ID);
        }
        public PhongDTO LayPhongByMaPhong(string maPhong)
        {
            PhongDAO kq = new PhongDAO();
            return kq.LayPhongByMaPhong(maPhong);
        }
        public Boolean ThemPhong(PhongDTO p)
        {
            PhongDAO kq = new PhongDAO();
            return kq.ThemPhong(p);
        }
        public Boolean XoaPhongByID(int p_ID)
        {
            PhongDAO kq = new PhongDAO();
            return kq.XoaPhongByID(p_ID);
        }
        public Boolean CapNhatPhong(PhongDTO p)
        {
            PhongDAO kq = new PhongDAO();
            return kq.CapNhatPhong(p);
        }
    }
}
